/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package NajaTaskClient.classes;

/**
 *
 * @author nidorx
 */
public class Registro implements Comparable<Registro> {

    private Integer codigo;
    private Integer codigoUsuario;
    private Integer codigoTarefa;
    private String data;
    private String horaInicio;
    private String horaTermino;
    private String observacao;
    private String percentagemTarefa;

    public int compareTo(Registro o) {
        final int EQUAL = 0;
        final int AFTER = 1;
        if (this == o) {
            return EQUAL;
        }
        if (this.codigo.equals(o.codigo)) {
            return EQUAL;
        }
        return AFTER;
    }
}
